package com.zoe.onelink.plugin.check.exception;

import com.zoe.onelink.plugin.check.model.PropertyCheckResult;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>标题: </p>
 * <p>描述: </p>
 * <p>版权: Copyright (c) 2022</p>
 * <p>公司: 智业软件股份有限公司</p>
 *
 * @version: 1.0
 * @author: ruansheng
 * @date: 2022-09-20
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class PropertyCheckException extends RuntimeException {

    private final PropertyCheckResult<?> result;

    public PropertyCheckException(PropertyCheckResult<?> result) {
        super("[环境检查模块] 严重的错误配置: " + result.getMessage());
        this.result = result;
    }
}
